package com.example.mardan_demo1.service;

import com.example.mardan_demo1.pojo.Announcement.Announcement;
import com.example.mardan_demo1.pojo.FilePojo;
import com.example.mardan_demo1.pojo.PageBean;
import com.example.mardan_demo1.pojo.Result;
import org.springframework.web.multipart.MultipartFile;

public interface FileUploadService {
    Boolean fileUpload(FilePojo filePojo);

    PageBean<FilePojo> list(Integer pageNum, Integer pageSize, String name);

    Result gongGaoXinZeng(Announcement announcement);

    Result gongGaoShanChuById(Integer id);

    Result getGongGaoList(String title, Integer pageNum, Integer pageSize);

    Result getGongGaoById(Integer id);

    Result gongGaoUpdateById(Announcement announcement);

    Result gongGaoHiddenById(Integer id, Integer hidden);

    Result getUserGongGaoList(String title, Integer pageNum, Integer pageSize);

    Result uploadImg(MultipartFile file);
}
